package org.dromara.study.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.study.domain.entity.BookCategory;
import org.dromara.study.domain.vo.BookCategoryVo;
import org.dromara.study.mapper.BookCategoryMapper;
import org.dromara.study.service.BookCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BookCategoryServiceImpl extends ServiceImpl<BookCategoryMapper, BookCategory> implements BookCategoryService {

    @Autowired
    private BookCategoryMapper bookCategoryMapper;

    @Override
    public Page<BookCategoryVo> getPage(PageQuery pageQuery, BookCategoryVo bookCategoryVo) {
        return bookCategoryMapper.getPage(pageQuery.build(), bookCategoryVo);
    }
}
